package com.huayi.breakpoint_continuation_interface.mapper;

import com.huayi.breakpoint_continuation_interface.bean.BreakpointStats;
import com.huayi.breakpoint_continuation_interface.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description :
 * @Author:yujiahao
 * @Date: 2022/6/10 9:55
 * @Version: 1.0
 */
public interface Breakpoint_Continuation_FromCk_Mapper {

    //查询CK中的数据
    //@Select("select * from  testbreakpointcontinuation_all group by id ,user_id, platform_id, course_id, play_current, play_insert,identify_id,play_total;")
    public List<BreakpointStats> selectAll();
    //获取mysql中密码验证
    @Select("select user_name,password from user where user_name = #{user.user_name} and password = #{user.password}")
    public User getAccount(@Param("user") User user);
    User findByUsername(String username);
}
